<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			//split
			var str="1a2b3c4d5e6f7g";
			console.log(str.split(/[A-z]/));
			//search
			var str1="abc hello aec ade";
			console.log(str1.search(/a[bed]c/));
			//match
			console.log(str.match(/[A-z]/ig));  //采用全局模式，才会全部找出来 否则只是找出第一个
			//replace
			console.log(str.replace(/[0-9]/g,"kuli"));  //采用全局模式，才会全部替换
		</script>
	</head>
	<body>
	</body>
</html>